from rouge_score import rouge_scorer
from nltk.translate.meteor_score import meteor_score, single_meteor_score

scorer = rouge_scorer.RougeScorer(['rouge1', 'rougeL'], use_stemmer=True)
scores = scorer.score('The quick brown fox jumps over the lazy dog',
                      'The quick brown dog jumps on the log.')
print(scores['rougeL'].fmeasure)
# import nltk
# nltk.download("wordnet")

scores = single_meteor_score('The quick brown fox jumps over the lazy dog'.split(),
                      'The quick brown dog jumps on the log.'.split())
print(scores)
